package com.dave.admin.modular.boss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dave.admin.modular.boss.entity.Permission;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author Dave
 * @since 2024-08-13
 */
@CacheNamespace
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 获取用户所有权限(包)  注意：需要去重 原因看 UserRoleServiceImpl.relationshipUser
     */
    List<Permission> getPermissionList(@Param("userAdminId") String userAdminId);
}
